package xine.demo.ssm.exception;

import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;

/**
 * 业务异常类
 *      用于传递业务性不合性的消息提示
 */
//该注解的作用是，将未处理异常，从500转为400，伪装成错误请求
@ResponseStatus(value = HttpStatus.BAD_REQUEST, reason = "业务异常，伪装为错误请求")
public class BusinessException extends Exception {
    public BusinessException(String message){
        super(message);
    }
}
